import Vue from 'vue'
import VueRouter from 'vue-router'
// import Home from '../views/home/Home'
const Home =()=> import('../views/home/Home')
const Category = ()=> import('../views/category/Category')

Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect:'/home'
  },
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {
    path: '/category',
    name: 'Category',
    component: Category
  },

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
